package com.example.restaurant.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 加退菜表
 * </p>
 *
 * @author x
 * @since 2022-09-29
 */
@TableName("dish_operate")
@ApiModel(value = "DishOperate对象", description = "加退菜表")
public class DishOperate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联菜品id")
    private Integer dishId;

    @ApiModelProperty("关联订单号")
    private String orderNumber;

    @ApiModelProperty("加退菜时间")
    private Date time;

    @ApiModelProperty("状态 加菜 add_dish|退菜 remove_dish")
    private String status;

    @ApiModelProperty("菜品数量")
    private Integer dishNumber;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public Integer getDishNumber() {
        return dishNumber;
    }

    public void setDishNumber(Integer dishNumber) {
        this.dishNumber = dishNumber;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "DishOperate{" +
                "id=" + id +
                ", dishId=" + dishId +
                ", orderNumber=" + orderNumber +
                ", time=" + time +
                ", status='" + status + '\'' +
                ", dishNumber=" + dishNumber +
                '}';
    }
}
